﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp.Application.Services;
using ERP.Common.Results;
using ERP.ERPSystem.WarehouseManagement.Dto;

namespace ERP.ERPSystem.WarehouseManagement
{
    /// <summary>
    /// 仓储管理-采购入库接口类
    /// </summary>
    public interface IProcurementwarehousingServices:IApplicationService
    {
        /// <summary>
        /// 分页查询采购入库列表
        /// </summary>
        /// <param name="queryDto">查询条件</param>
        /// <returns>分页结果</returns>
        Task<APIPaging<ProcurementwarehousingDTO>> GetPagedListAsync(ProcurementwarehousingQueryDto queryDto);

        /// <summary>
        /// 根据ID获取采购入库详情
        /// </summary>
        /// <param name="id">ID</param>
        /// <returns>详情信息</returns>
        Task<ProcurementwarehousingDTO> GetByIdAsync(int id);

        /// <summary>
        /// 新增采购入库
        /// </summary>
        /// <param name="createDto">新增数据</param>
        /// <returns>操作结果</returns>
        Task<bool> CreateAsync(ProcurementwarehousingCreateDto createDto);

        /// <summary>
        /// 生成入库单编号
        /// </summary>
        /// <returns>入库单编号</returns>
        string GenerateInboundCode();

        /// <summary>
        /// 生成入库单编号 (异步版本)
        /// </summary>
        /// <returns>入库单编号</returns>
        Task<string> GenerateInboundCodeAsync();
    }
}
